<?php
/**
 * API路由，url前缀 api.
 */
Route::group(['middleware' => 'auth:api'], function () {
    Route::get('contents/{id}', 'ContentsController@show');

    Route::resources([
        'pay' => 'PayController',
    ]);
});

Route::resources([
    'schools' => 'SchoolsController',
    'subjects' => 'SubjectsController',
    'orders' => 'OrdersController',
]);

Route::post('login', 'AuthController@login');
Route::get('contents', 'ContentsController@index');

